package com.ruoyi.jproom.service;

import com.ruoyi.jproom.entity.Housing;
import com.ruoyi.jproom.entity.Residential;
import com.ruoyi.jproom.entity.Sell;
import com.ruoyi.jproom.utils.BaseResult;

/**
 * @author zeo
 * @explain 出售信息服务
 * @date 2020/7/27 15:00
 */
public interface SellService {

    /**
     * 主页推荐出租、二手房房源
     * @param residential
     * @param housing
     * @param sell
     * @return
     */
    BaseResult findAllRecommend(Residential residential, Housing housing, Sell sell);

    /**
     * 新增售租关联
     * @param sell
     * @return
     */
    int addSellInfo(Sell sell);

    /**
     * 根据房源id查询售租信息
     * @param housingId
     * @return
     */
    Sell findSellInfoByHousingId(String housingId);

    /**
     * 房源售卖状态改为已出售
     * @param housingId
     * @param isDeal
     * @return
     */
    int changeIsDeal(String housingId,int isDeal);

}
